package evolution;

import java.util.Random;
import java.util.UUID;

import evolution.UUIDGenerator;


public class DeterministicUUIDGenerator implements UUIDGenerator
{
	private Random random;

	public DeterministicUUIDGenerator()
	{
		random = new Random(1234);
	}

	public UUID generateUUID()
	{
		byte[] bytes = new byte[8];
		random.nextBytes(bytes);
		UUID result = UUID.nameUUIDFromBytes(bytes);
		return result;
	}

}
